/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package co.com.poligran.polla.mundialista.ingesoft.db;

import co.com.poligran.polla.mundialista.ingesoft.db.Conexion;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

/**
 *
 * @author JUAN RIOS
 */
public abstract class Entitie {
    
    protected Connection conn;
    protected PreparedStatement ps;
    protected ResultSet rs;
    protected CallableStatement cs;
    protected String query;

    public Entitie() {
        this.conn = Conexion.conexionSqlServer();
    }

    public Connection getConn() {
        return conn;
    }

    public void setConn(Connection conn) {
        this.conn = conn;
    }

    public PreparedStatement getPs() {
        return ps;
    }

    public void setPs(PreparedStatement ps) {
        this.ps = ps;
    }

    public ResultSet getRs() {
        return rs;
    }

    public void setRs(ResultSet rs) {
        this.rs = rs;
    }

    public CallableStatement getStatement() {
        return cs;
    }

    public void setStatement(CallableStatement statement) {
        this.cs = statement;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }
    
    
    
}
